<template>
	<view>
		<HeaderVue title="学校"></HeaderVue>
		
	</view>
</template>

<script>
	import HeaderVue from '@/components/Header.vue'
	export default {
		components: {
			HeaderVue
		},
		data() {
			return {
				
			}
		},
		onLoad() {
			this.getSchool()
		},
		methods: {
			async getSchool() {
				var res = await this.$req({
					url:'api/schools/get_list',
					data:{
						id:this.param.activity_id,
					}
				})
				if(res.code == 1) {
					this.data = res.data
					if(res.data.types){
						let aa=res.data.types.split(',')
						this.select_type_array.push(aa)
					}
					if(res.data.group_types){
						 let aa=res.data.group_types.split(',')
						this.group_type_array.push(aa)
					}
					console.log('select_type_array',this.select_type_array)
					console.log('group_type_array',this.group_type_array)
					
				}else{
					uni.showToast({
						title:res.msg,
						icon:'none'
					})
				}
			},
		}
	}
</script>

<style>

</style>
